<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        // 6.
        var sport = prompt("输入你最喜欢的运动","打羽毛球")
        alert("你最喜欢的运动是："+sport)
        document.write("document.write")
        // 10.
        x=3
        y=2
        z= (x+y)/2
        alert(z)
    </script>
        
    <input type="button" value="鼠标响应1" onClick="alert('确定')"> </input>
    <button value="鼠标响应2" onClick="alert('确定')"></button>    
 


</body>
</html>